Replace $nu.home-path with ~ in env.nu file#4701
Merged
djc merged 2 commits intorust-lang:mainfrom Feb 3, 2026
Merged
Conversation
rami3l
approved these changes
Feb 3, 2026
Member
rami3l
left a comment
There was a problem hiding this comment.
LGTM, but when was this ~ shorthand introduced? I'm curious about how compatible we can be when it comes to this (for fish we have explicitly used old syntax I think, for example).
Contributor
Author
0.1 version of |
The different `source` and `path add` commands we add to `config.nu`, `env.nu` & user-help-messages no longer use the $nu.home-path variable for e.g. in `env.nu`, path add $"($nu.home-path)/.cargo/bin" changes to, path add "~/.cargo/bin" In `config.nu`, source $"($nu.home-path)/.cargo/env.nu" changes to, source "~/.cargo/env.nu"
djc
approved these changes
Feb 3, 2026
Closed
2 tasks
Closed
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
$nu.home-pathwas renamed to$nu.home-dirin the latest nushell 0.110 release (nushell/nushell#17129).This PR replaces
$nu.home-pathwith~, so that both old and new versions of nushell remain compatible.~is a shorthand for$nu.home-dir, as per nushell's doc.